class Base():
    def __init__(self,driver):
        self.driver = driver
    def open(self,usr):
        self.driver.get(usr)
        self.driver.maximize_window()

    def find_element(self,*locator):
        self.driver.find_element(*locator)

    def input(self,locator,text):
        self.driver.find_element(*locator).send_keys(text)

    def click(self,locator):
        self.driver.find_element(*locator).click()



        # class Base():
        #     def __init__(self, driver):
        #         self.driver = driver
        #
        #     def open(self, url):
        #         self.driver.get(url)
        #         self.driver.maximize_window()
        #
        #     def find_element(self, *locator):
        #         self.driver.find_element(*locator)
        #
        #     def input(self, locator, text):
        #         self.find_element(*locator).send_keys(text)
        #
        #     def click(self, locator):
        #         self.find_element(*locator).click()